<% content_for :title do %>用户登录<% end %>
<div style="width:460px;margin-left:auto;margin-right:auto; padding:0px;">
<%= form_for(resource, as: resource_name, url: session_path(resource_name),html: { class: "form", id: "sign_in_form" }) do |f| %>


<div class="form-group">
<label class="control-label">邮箱:</label>
<%= f.email_field :email, autofocus: true,:class=>"form-control",:placeholder=>"Enter email"%>
</div>

<div class="form-group">
<label class="control-label">密码:</label>
<%= f.password_field :password, autocomplete: "off",:class=>"form-control",:placeholder=>"Password" %>
</div>

<% if devise_mapping.rememberable? -%>
<div class="form-group checkbox"><%= f.check_box :remember_me %> <%= f.label "记住我" %></div>
<% end -%>

<div><%= f.submit "登 录",:class=>"btn btn-default btn-primary btn-block" %> </div>

<% end %>
<hr/>

<% link_to "首次登录 或者 忘记密码?", new_password_path(resource_name) %><br />

<hr/>
<p>
<!-- <a href="http://rj.baidu.com/soft/detail/14744.html" target="_blank">想要最佳体验,请使用更先进的浏览器</a>	 -->
</p>

</div>
